
#include <iostream>
#include <string.h>
#include <unistd.h>

using namespace std;

class Sofa {
private:
	int weight;

public:
	void watchTV(void){
		cout << "watch TV " <<endl;
	}
	void setWeight(int weight) {this-> weight = weight;}
	int getWeight(void) {return this-> weight;}

};


class Bed {
private:
	int weight;
	
public:
	void sleep(void){
		cout << "sleep " <<endl;
	}
	void setWeight(int weight) {this-> weight = weight;}
	int getWeight(void) {return this-> weight;}

};


class SofaBed : public Sofa ,public Bed {
public:
	

};



int main(int argc , char **argv)
{	
	SofaBed s;
	
	s.watchTV();
	s.sleep();

	s.Sofa::setWeight(100);

	
	return 0;
}











